package cn.wolfcode.trip.app.web.controller;

import cn.wolfcode.trip.base.service.IAtWhoService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 我收到的评论
 */
@Controller
@RequestMapping("/commentMe")
public class CommentMeController {


    @Autowired
    private IAtWhoService service;


    /**
     * 展示所有未读的评论我的
     *
     * @param
     * @return
     */
    @GetMapping("/listAll")
    @ResponseBody
    public Object listAllNoRead(Long id) {
        PageInfo info = service.listAllNoReadCommend(id);
        return info;
    }


}
